-- GENERATED SPELL FOR [Ambassador Jerrikar] --


function spell0_18695(pUnit, Event) --@Dark Strike,n/a--
pUnit:FullCastSpellOnTarget(38926,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18695', 572, 1)
end

function spell1_18695(pUnit, Event) --@Diplomatic Immunity,Self--
pUnit:FullCastSpellOnTarget(38916,pUnit)
pUnit:RegisterEvent('Sorts_18695', 6331, 1)
end

function spell2_18695(pUnit, Event) --@Silence,n/a--
pUnit:FullCastSpellOnTarget(38913,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18695', 4259, 1)
end

function Sorts_18695(pUnit, Event)
local choix_sorts_18695 = math.random(0, 2)
if choix_sorts_18695 == 0 then
pUnit:RegisterEvent('spell0_18695', 1, 1)
end
if choix_sorts_18695 == 1 then
pUnit:RegisterEvent('spell1_18695', 1, 1)
end
if choix_sorts_18695 == 2 then
pUnit:RegisterEvent('spell2_18695', 1, 1)
end
end

function mob18695_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18695', math.random(1500, 3000), 1)
end

function mob18695_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18695_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18695_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18695, 1, 'mob18695_Action')
RegisterUnitEvent(18695, 2, 'mob18695_Leave')
RegisterUnitEvent(18695, 3, 'mob18695_Kill')
RegisterUnitEvent(18695, 4, 'mob18695_Die')
